home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / ungetc.man < prev    next >
Encoding:
Text File  |  1989-03-13  |  1.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. UNGETC                C Library Procedures                 UNGETC
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      ungetc - push character back into input stream
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ##iinncclluuddee <<ssttddiioo..hh>>
  13.  
  14.      uunnggeettcc((cc,, ssttrreeaamm))
  15.      FFIILLEE **ssttrreeaamm;;
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.      _U_n_g_e_t_c pushes the character _c back on an input stream.  That
  19.      character will be returned by the next _g_e_t_c call on that
  20.      stream.  _U_n_g_e_t_c returns _c.
  21.  
  22.      One character of pushback is guaranteed provided something
  23.      has been read from the stream and the stream is actually
  24.      buffered.  Attempts to push EOF are rejected.
  25.  
  26.      _F_s_e_e_k(3S) erases all memory of pushed back characters.
  27.  
  28. SSEEEE AALLSSOO
  29.      getc(3S), setbuf(3S), fseek(3S)
  30.  
  31. DDIIAAGGNNOOSSTTIICCSS
  32.      _U_n_g_e_t_c returns EEOOFF if it can't push a character back.
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.